//创建队列对象
var queue=new createjs.LoadQueue();
//监听进度
queue.on("progress",function(e){
	var p=parseInt(e.progress*100)+"%"//将各自的加载进度转换成100%
	$("#text2").html(p)//将加载进度写进width
},this)
//监听完成
queue.on("complete",function(){
	console.log("1")
	window.location.href="index.html"
},this)
//加载资源列表
queue.loadManifest([
	{id:"1",src:"img/game/bear.png"},
	{id:"2",src:"img/game/begin.png"},
	{id:"3",src:"img/game/bg_back.jpg"},
	{id:"4",src:"img/game/end.png"},
	{id:"5",src:"img/game/logo.png"},
	{id:"6",src:"img/game/pao1.png"},
	{id:"7",src:"img/game/pao2.png"},
	{id:"8",src:"img/game/pao3.png"},
	{id:"9",src:"img/game/pao4.png"},
	{id:"10",src:"img/game/pao5.png"},
	{id:"11",src:"img/game/pao6.png"},
	{id:"12",src:"img/game/pao7.png"},
	{id:"13",src:"img/game/pao8.png"},
	{id:"14",src:"img/game/pao9.png"},
	{id:"15",src:"img/game/pao10.png"},
	{id:"16",src:"img/game/pao11.png"},
	{id:"17",src:"img/game/pao12.png"},
	{id:"18",src:"img/game/sky1.png"},
	{id:"19",src:"img/game/sky2.png"},
	{id:"20",src:"img/game/star1.png"},
	{id:"21",src:"img/game/star2.png"},
	{id:"22",src:"img/game/zhentou1.png"},
	{id:"23",src:"img/game/zhentou2.png"},
	{id:"24",src:"img/game/zhentou3.png"},
	{id:"25",src:"img/game/zhentou4.png"},
	{id:"26",src:"img/gift/gift_bg.jpg"},
	{id:"27",src:"img/gift/gift1.png"},
	{id:"28",src:"img/gift/gift2.png"},
	{id:"29",src:"img/gift/gift3.png"},
	{id:"30",src:"img/gift/gift4.png"},
	{id:"31",src:"img/gift/gift5.png"},
	{id:"32",src:"img/gift/gift6.png"},
	{id:"33",src:"img/gift/gift7.png"},
	{id:"34",src:"img/gift/gift8.png"},
	{id:"35",src:"img/gift/share_bear.png"},
	{id:"36",src:"img/gift/share_logo.png"},
	{id:"37",src:"img/index/bear.png"},
	{id:"38",src:"img/index/close.png"},
	{id:"39",src:"img/index/fly_both.png"},
	{id:"40",src:"img/index/jb1.png"},
	{id:"41",src:"img/index/jb2.png"},
	{id:"42",src:"img/index/jb3.png"},
	{id:"43",src:"img/index/jb4.png"},
	{id:"44",src:"img/index/jb5.png"},
	{id:"45",src:"img/index/jb6.png"},
	{id:"46",src:"img/index/logo.png"},
	{id:"47",src:"img/index/rule.jpg"},
	{id:"48",src:"img/index/title.jpg"},
	{id:"49",src:"img/luckyDraw/ld_bg.jpg"},
	{id:"50",src:"img/luckyDraw/logo.png"},
	{id:"51",src:"img/luckyDraw/red_bag.png"},
	{id:"52",src:"img/luckyDraw/red_logo.png"},
	{id:"53",src:"img/switchPillow/banner2.png"},
	{id:"54",src:"img/switchPillow/logo.png"},
	{id:"55",src:"img/switchPillow/se_bg.jpg"},
	{id:"56",src:"img/switchPillow/zhentou1.png"},
	{id:"57",src:"img/switchPillow/zhentou2.png"},
	{id:"58",src:"img/switchPillow/zhentou3.png"},
	{id:"59",src:"img/switchPillow/zhentou4.png"}
])
